package cn.mooncode.basketballManage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author jwz
 * @since 2021-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_coachinfo")
@ApiModel(value="Coachinfo对象", description="教练信息表")
public class Coachinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教练信息表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "教练姓名")
    private String name;

    @ApiModelProperty(value = "教练性别")
    private Integer gender;

    @ApiModelProperty(value = "教练年龄")
    private Integer age;

    @ApiModelProperty(value = "出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDate birthday;



}
